Skip to content

fix(redis): harden sentinel role probe#42

Open
wallyxjh wants to merge 1 commit into
fix/v0.9.3from
fix/redis-sentinel-role-probe-v093
Open

fix(redis): harden sentinel role probe#42
wallyxjh wants to merge 1 commit into
fix/v0.9.3from
fix/redis-sentinel-role-probe-v093

Conversation

@wallyxjh

@wallyxjh wallyxjh commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Make Redis lorry role detection confirm Sentinel-reported primary against local Redis INFO replication.
  • Use Sentinel majority when the Sentinel pod list is available, instead of trusting the first reachable Sentinel.
  • Avoid reporting a Redis pod as primary when the local Redis process is still running as a replica.
  • Add parser/unit coverage for Redis replication role and Sentinel master parsing helpers.

Test plan

  • go test ./pkg/lorry/engines/redis ./pkg/lorry/operations/replica

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant